#include "system_info_page.h"



SystemInfoPage::SystemInfoPage(Page* parent) :AppPage(parent)
{

  this->parent = parent;

  this->viewport = new Container(this);
  this->viewport->set_size(220, 260);

  this->viewport->set_flex_layout(LV_FLEX_FLOW_COLUMN, false, false, LV_FLEX_ALIGN_START, LV_FLEX_ALIGN_CENTER, LV_FLEX_ALIGN_CENTER);

  Label* label = new Label(this->viewport);
  label->set_text("System Info page", THEME_COLOR_BLUE);


  // this->set_event_cb([](lv_event_t* e) {
  //   if (e->code == LV_EVENT_GESTURE) {
  //     lv_dir_t dir = lv_indev_get_gesture_dir(lv_indev_get_act());
  //     if (dir == LV_DIR_TOP) { // 上滑为
  //       SystemInfoPage* page = (SystemInfoPage*) e->user_data;
  //       page->parent->show();

  //       delete page;

  //     }
  //   }
  //   }, LV_EVENT_GESTURE, this);



}


SystemInfoPage::~SystemInfoPage()
{
}

